/* ***********************
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is InsertBreaks.js module.
 *
 * The Initial Developer of the Original Code is Rob Gerns.
 *
 * Portions created by the Initial Developer are Copyright (C) 2010
 * the Initial Developer. All Rights Reserved.
 *
 **************************/
 
 /*************************************************
* Function Name(s): insertBreaks
*
* Purpose:
* Insert an HTML break tag between the "highest"
* feature node and anything that is before it (ads, etc)
* 
* (Yes this could/should be done with CSS, but I found
* just insterting an HTML break was more compatible
* across browsers)
* 
**************************************************/

function insertBreaks(){
	
 //Create a new <br> node
 var breakTag = document.createElement("br")
 var breakDiv = document.getElementById("highest");
                
 //As long as the "highest" node exists (it should have already been created), insert the new <br> right before it
 if(breakDiv!=null && breakDiv!=undefined){
	document.getElementById("container").insertBefore(breakTag,breakDiv);
 }
             
}